ifneq ($(KERNELRELEASE),)
	obj-m	:= wfilter.o
else
	KDIR	:= /lib/modules/$(shell uname -r)/build
	PWD	:= $(shell pwd)
default:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif


clean:
	$(RM) .*.cmd *.mod.c *.o  .*.o.d *.ko -r .tmp* Module.symvers

install:
	install -d /usr/local/drc
	install $(PWD)/wfilter.ko /usr/local/drc

uninstall:
	rm -rf /usr/local/drc/wfilter.ko
